from django.test import TestCase
from core.models.link import Link
#from core.tests.mocks import Mocks

class TestLink(TestCase):
    def test_link(self):
        uri = Link(title = 'Test', link = 'http://www.com')

        uri.save()

        self.assertEqual(uri.title, 'Test')
        self.assertEqual(1, uri.pk)
        self.assertEqual(uri.title + ': ' + uri.link, 'Test: http://www.com')

        uri.delete()

